//
//  main.swift
//  nupengyou
//
//  Created by safeu on 2017/9/19.
//  Copyright © 2017年 xuyuanyuan. All rights reserved.
//

import Foundation


class GirlFirend: NSObject {
    var name = ""
    var age = 0
    
    override init() {
        name = String(format: "%c%c%c", 40+arc4random(), 40+arc4random(), 40+arc4random())
        age = Int(arc4random() % 10 + 18)
    }
    override var description: String{
        return "姓名：\(name) \t,年龄：\(age)"
    }
    func yue() -> () {
        print("约会：name is \(name),age is \(age)")
    }
}
for i in 0..<100{
    var gf = GirlFirend()
    gf.yue()
    
}
